﻿using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace Hrm.Core
{
    public class PriceType:Entity
    {
        [MaxLength(50)]
        [Display(Name="名称")]
        public string Name { get; set; }

        [MaxLength(2000)]
        [Display(Name = "描述")]
        public string Description { get; set; }

        public int BelongId { get; set; }

        [MaxLength(50)]
        [Display(Name = "类型")]
        public string BelongType { get; set; }

        [Display(Name = "价格")]
        public decimal Price { get; set; }

        [MaxLength(50)]
        [Display(Name = "单位")]
        public string Unit { get; set; }

        public virtual ICollection<PriceItem> PriceItems { get; set; }
    }
}
